package com.example.cardstackproject.card

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import com.bumptech.glide.request.RequestOptions
import com.example.cardstackproject.R

class SimpleOverlayAdapter : BaseOverlayPageAdapter {
    private var mInflater: LayoutInflater

    constructor(context: Context?) : super(
        context!!,
        RequestOptions().error(R.drawable.error).placeholder(R.drawable.placeholder)
    ) {
        mInflater = LayoutInflater.from(context)
    }

    constructor(context: Context?, imageOptions: RequestOptions?) : super(context!!, imageOptions!!) {
        mInflater = LayoutInflater.from(context)
    }

    override fun itemView(): View {
        return mInflater.inflate(R.layout.item_viewpager, null)
    }
}
